<T:ViewBase x:Class="WPFExcelReport.TVTGBST02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VTGMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVTGBST.VTGMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VTGSA:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVTGBST.VTGSA}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VTGTPMA:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVTGBST.VTGTPMA}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VTGKUNDNRE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVTGBST.VTGKUNDNRE}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VTGKUNDNRB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVTGBST.VTGKUNDNRB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VTGMJJ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVTGBST.VTGMJJ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VTGMM:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVTGBST.VTGMM}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VTGME01:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVTGBST.VTGME01}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VTGME20:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVTGBST.VTGME20}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VTGME21:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVTGBST.VTGME21}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VTGME31:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVTGBST.VTGME31}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsVTGBST,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwVTGBST}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwVTGBST, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="VTGMANDANT"
                                    Binding="{Binding Path=VTGMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGSA"
                                    Binding="{Binding Path=VTGSA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGSA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGTPMA"
                                    Binding="{Binding Path=VTGTPMA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGTPMA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGKUNDNRE"
                                    Binding="{Binding Path=VTGKUNDNRE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGKUNDNRE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGKUNDNRB"
                                    Binding="{Binding Path=VTGKUNDNRB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGKUNDNRB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGMJJ"
                                    Binding="{Binding Path=VTGMJJ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGMJJ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGMM"
                                    Binding="{Binding Path=VTGMM, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGMM}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGME01"
                                    Binding="{Binding Path=VTGME01, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGME01}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGME20"
                                    Binding="{Binding Path=VTGME20, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGME20}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGME21"
                                    Binding="{Binding Path=VTGME21, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGME21}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGME31"
                                    Binding="{Binding Path=VTGME31, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGME31}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGME42"
                                    Binding="{Binding Path=VTGME42, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGME42}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGME43"
                                    Binding="{Binding Path=VTGME43, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGME43}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGMER01"
                                    Binding="{Binding Path=VTGMER01, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGMER01}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGMER02"
                                    Binding="{Binding Path=VTGMER02, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGMER02}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGMER03"
                                    Binding="{Binding Path=VTGMER03, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGMER03}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGMER04"
                                    Binding="{Binding Path=VTGMER04, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGMER04}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGBSTG"
                                    Binding="{Binding Path=VTGBSTG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGBSTG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGME21VOR"
                                    Binding="{Binding Path=VTGME21VOR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGME21VOR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGBSTAN"
                                    Binding="{Binding Path=VTGBSTAN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGBSTAN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGBSTMA"
                                    Binding="{Binding Path=VTGBSTMA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGBSTMA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGBSTA"
                                    Binding="{Binding Path=VTGBSTA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGBSTA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGBSTME"
                                    Binding="{Binding Path=VTGBSTME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGBSTME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGINDAT"
                                    Binding="{Binding Path=VTGINDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGINDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGINBST"
                                    Binding="{Binding Path=VTGINBST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGINBST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGINALT"
                                    Binding="{Binding Path=VTGINALT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGINALT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGEKPRMA"
                                    Binding="{Binding Path=VTGEKPRMA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGEKPRMA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGEKPRME"
                                    Binding="{Binding Path=VTGEKPRME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGEKPRME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGEKPRZU"
                                    Binding="{Binding Path=VTGEKPRZU, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGEKPRZU}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGVRPR"
                                    Binding="{Binding Path=VTGVRPR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGVRPR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGDLABST"
                                    Binding="{Binding Path=VTGDLABST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGDLABST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGDLATAG"
                                    Binding="{Binding Path=VTGDLATAG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGDLATAG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGMINBST"
                                    Binding="{Binding Path=VTGMINBST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGMINBST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGMAXBST"
                                    Binding="{Binding Path=VTGMAXBST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGMAXBST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGUEBER"
                                    Binding="{Binding Path=VTGUEBER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGUEBER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGAENDZL"
                                    Binding="{Binding Path=VTGAENDZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGAENDZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VTGFILLER"
                                    Binding="{Binding Path=VTGFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VTGFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
